package com.yuninglong.server;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author yuninglong
 */

@Data
@Component
@RefreshScope //启动类上面加了无效，需要在这里加上，下面的@Value才会生效
public class NacosConfig {
    @Value(value = "${useLocalCache:0}")
    private String useLocalCache;

    @Value(value = "${system.dingtalk.token:0}")
    private String token;


}
